//手机端 按钮效果
	var results = window.matchMedia('(min-width:768px)');
	window.onload = function(){
		if(!results.matches){
			var aList = $('#toolbar').find('a');
			aList.each(function(ind,ele){
				console.log(ele.childNodes.length)
				if(ele.childNodes.length > 1){
					ele.childNodes[1].nodeValue = '';
				}
			})
			var colList = $('#formSearch')[0].children[0].children;
//			$('#formSearch')[0].children[0].style.position = 'relative';
			if(colList.length > 2){
				for(var i=1;i<colList.length-1;i++){
					colList[i].style.display = 'none';
				}
			$('#formSearch')[0].children[0].innerHTML += '<span id="deTail" style="position:absolute;right:18px;bottom:0;font-size:20px;font-family: cursive;">◤</span>';
			$('#deTail').click(function(){
				if($('#deTail')[0].innerText == '◤'){
					
					for(var i=1;i<colList.length;i++){
						colList[i].style.display = 'block';
						$('#deTail')[0].innerText = '◢';
					}
				}else{
					for(var i=1;i<colList.length-2;i++){
						colList[i].style.display = 'none';
						$('#deTail')[0].innerText = '◤';
					}
				}
				
			})
			}
			
			
			
		}
	}